<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>卖家订单</title>
  <link rel="stylesheet" href="/css/SellerOrder.css">
</head>
<!--卖家总订单-->
<body>
<div>
  <ul id="s">
    <li><a href="/seller/menulist1"> 菜单1 </a></li>
    <li><a href="/seller/menulist2"> 菜单2 </a></li>
    <li><a href=""> 编辑 </a></li>
    <li><a href="/seller/order2"> >订单 </a></li>
    <li><a href="/table/seller"> 餐桌 </a></li>
  </ul>
</div>
<div id="sellerorder2">
  <table id="sellerorder">
    <tr>
      <th>订单编号</th><th>时间(倒序)</th><th>餐桌</th><th>状态</th><th>操作</th>
    </tr>
    <tr th:each="shoppingorder : ${buyerHtml}">
      <td th:text="${shoppingorder.id}"></td>
      <td th:text="${shoppingorder.time}"></td>
      <td th:text="${shoppingorder.tablenumber}"></td>
      <td th:if="${shoppingorder.status eq 1}">制作中</td><td th:if="${shoppingorder.status eq 0}">用餐中</td><td th:if="${shoppingorder.status eq -1}">已结算</td>
      <td><a th:href="@{'/seller/order/'+${shoppingorder.username}}"><button>查看</button></a>  <a th:href="@{'/order/finishOrder/'+${shoppingorder.username}}"><button>出菜</button></a></td>
    </tr>
  </table>
</div>
</body>
</html>